package com.jinlia.show.modules.base.constant;

import com.jinlia.show.modules.base.constant.i.IBaseEnum;
import lombok.Getter;

/**
 * 配送单状态
 */
public enum DeliveryStatusEnum implements IBaseEnum<Integer> {
    //发货单状态(20:默认状态(新建)->21:待接单->22:待配送->23:在途中->24:已送达->25:待确认(顾客)
    A(0, "新建状态,待确认跑腿"),//未支付->
    B(1, "正在呼叫跑腿"), //待接单->
    C(2, "跑腿已接单"), //待接单->
    D(3, "再路上"),
    E(4, "已送达");//顾客确认

    @Getter
    private Integer value;

    @Getter
    private String label;

    /**
     * @param value
     * @param label
     */
    DeliveryStatusEnum(int value, String label) {
        this.value = value;
        this.label = label;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    @Override
    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }
}
